package com.example.mapper;

import com.example.entity.StudyMaterial;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface StudyMaterialMapper {
    int insert(StudyMaterial material);
    int update(StudyMaterial material);
    StudyMaterial selectById(Long id);
    List<StudyMaterial> selectAll(@Param("material") StudyMaterial material,
                                  @Param("isAdmin") Boolean isAdmin);
}